﻿using RFBR.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RFBR.Core.Infrastructure.Models.Structure
{
	internal class Variable : Entity, IVariable
	{
		public Variable(string name = null)
			:base(Guid.NewGuid(), name, EntityType.Variable)
		{
		}
		#region [Properties]
		public IDomain Domain { get; set; }

		public object Value { get; set; }
		#endregion

		#region [Public Methods]
		public IDomain CreateNewDomain()
		{
			Domain = new Domain();
			Value = null;
			return Domain;
		}
		#endregion
	}
}
